package Edchl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.MessageComponent;

public class EDC_HL7SegMSH extends MessageComponent{
	
	//Declarations
	public EDC_HL7FldST FieldSeparator;
	public EDC_HL7FldST EncodingCharacters;
	public EDC_HL7FldHD SendingApplication;
	public EDC_HL7FldHD SendingFacility;
	public EDC_HL7FldHD ReceivingApplication;
	public EDC_HL7FldHD ReceivingFacility;
	public EDC_HL7FldTS DateTimeOfMessage;
	public EDC_HL7FldST Security;
	public EDC_HL7FldCM_MT MessageType;
	public EDC_HL7FldST MessageControlID;
	public EDC_HL7FldPT ProcessingID;
	public EDC_HL7FldVID VersionID;
	public EDC_HL7FldI4 SequenceNumber;
	public EDC_HL7FldST ContinuationPointer;
	public EDC_HL7FldST AcceptAcknowledgementType;
	public EDC_HL7FldST ApplicationAcknowledgementType;
	public EDC_HL7FldST CountryCode;
	public EDC_HL7RepFldST CharacterSet;
	public EDC_HL7FldCE PrincipalLanguageOfMessage;
	public EDC_HL7FldST AlternateCharacterSetHandlingScheme;
	
	//Constructor
	public EDC_HL7SegMSH(MessageElement elem) {
		super(elem);
		FieldSeparator = new EDC_HL7FldST(elem.getElementAt("FieldSeparator"));
		EncodingCharacters = new EDC_HL7FldST(elem.getElementAt("EncodingCharacters"));
		SendingApplication = new EDC_HL7FldHD(elem.getElementAt("SendingApplication"));
		SendingFacility = new EDC_HL7FldHD(elem.getElementAt("SendingFacility"));
		ReceivingApplication = new EDC_HL7FldHD(elem.getElementAt("ReceivingApplication"));
		ReceivingFacility = new EDC_HL7FldHD(elem.getElementAt("ReceivingFacility"));
		DateTimeOfMessage = new EDC_HL7FldTS(elem.getElementAt("DateTimeOfMessage"));
		Security = new EDC_HL7FldST(elem.getElementAt("Security"));
		MessageType = new EDC_HL7FldCM_MT(elem.getElementAt("MessageType"));
		MessageControlID = new EDC_HL7FldST(elem.getElementAt("MessageControlID"));
		ProcessingID = new EDC_HL7FldPT(elem.getElementAt("ProcessingID"));
		VersionID = new EDC_HL7FldVID(elem.getElementAt("VersionID"));
		SequenceNumber = new EDC_HL7FldI4(elem.getElementAt("SequenceNumber"));
		ContinuationPointer = new EDC_HL7FldST(elem.getElementAt("ContinuationPointer"));
		AcceptAcknowledgementType = new EDC_HL7FldST(elem.getElementAt("AcceptAcknowledgementType"));
		ApplicationAcknowledgementType = new EDC_HL7FldST(elem.getElementAt("ApplicationAcknowledgementType"));
		CountryCode = new EDC_HL7FldST(elem.getElementAt("CountryCode"));
		CharacterSet = new EDC_HL7RepFldST(elem.getElementAt("CharacterSet"));
		PrincipalLanguageOfMessage = new EDC_HL7FldCE(elem.getElementAt("PrincipalLanguageOfMessage"));
		AlternateCharacterSetHandlingScheme = new EDC_HL7FldST(elem.getElementAt("AlternateCharacterSetHandlingScheme"));
	}

}
